package com.xdap.water.pojo;

import com.definesys.mpaas.query.annotation.Column;
import com.definesys.mpaas.query.annotation.ColumnType;
import com.definesys.mpaas.query.annotation.Style;
import com.definesys.mpaas.query.annotation.Table;
import com.definesys.mpaas.query.json.MpaasDateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

// 项目年度任务
@Table("gt_project_nd")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class WaterProjectYearTaskPojo extends SystemCommonPojo {
    @Style(displayName = "项目名称")
    @Column("pro_name")
    private String projectName;

    @JsonSerialize(using = MpaasDateSerializer.class)
    @Style(displayName = "任务年度")
    @Column("rwnd")
    private Date year;

    @Style(displayName = "年度投资任务（万元）")
    @Column("bnntrw")
    private Double yearInvestmentTask;

    @Style(displayName = "当前投资进度（万元）")
    @Column("dntzjd")
    private Double currentInvestmentTask;

    @Style(displayName = "当年累计纳统进度（万元）")
    @Column("dnljntjd")
    private Double currentNtTask;

    @Style(displayName = "市重大年度投资任务（万元)")
    @Column("szdndtz")
    private Double cityAmount;

    @Style(displayName = "省重点年度投资任务（万元）")
    @Column("sszdndtz")
    private Double provinceAmount;

    @Style(displayName = "项目类型")
    @Column("xmlx")
    private String projectType;

    @Style(displayName = "责任单位")
    @Column("zrdw")
    private String unit;

    // --------------- java 字段

    @Style(displayName = "项目类型ID")
    @Column(type = ColumnType.JAVA)
    private String projectTypeId;

    @Style(displayName = "责任单位ID")
    @Column(type = ColumnType.JAVA)
    private String unitId;

    @Style(displayName = "项目填报信息")
    @Column(type = ColumnType.JAVA)
    private GtFillProjectPojo fillProject;

    @Style(displayName = "项目信息")
    @Column(type = ColumnType.JAVA)
    private GtProjectInformationPojo projectInformation;
}
